#if($owner==$model.CUA)
	<div id="sidebar">
		<div class="contentWrap">
			<div class="intro">
				<div class="top_circle"></div>
				<div class="content">
					<div class="logo">
						<a href="$url.base/forum"><img valign="middle" src="$url.base/static/logo.gif"/></a>
					</div>
					<div class="center_menu">
						<h2>会员中心</h2>
						<ul>
							<li><a href="$url.base/member/$owner.id/upload-photo">修改头像</a></li>
							<li><a href="$url.base/member/$owner.id/edit-info">个人资料</a></li>
							<li><a href="$url.base/member/$owner.id/message/inbox">短消息<span class="newMessageCount"></span></a></li>
							<li class="separator"></li>
							<li><a href="$url.base/member/$owner.id/topic">我的帖子</a></li>
							<li><a href="$url.base/member/$owner.id/favorite">我的收藏</a></li>
							<li><a href="$url.base/member/$owner.id/?action=feed">我关注的人</a></li>
							<li class="separator"></li>
							<li><a href="$url.base/member/$owner.id/?action=point">积分</a></li>
							<li><a href="$url.base/member/$owner.id/?action=role">角色</a></li>
							<li><a href="$url.base/member/$owner.id/?action=medal">勋章</a></li>
							<li class="separator"></li>
							<li><a href="$url.base/member/$owner.id/password">密码和邮箱</a></li>
							<li><a href="$url.base/logout">退出</a></li>
						</ul>
					</div>
				</div>
				<div class="bottom_circle"></div>
			</div>
		</div>
	</div>
	<script type="text/javascript">
	var current_herf = location.href;
	var match = false;
	var urlArray = new Array();
	$.each($(".center_menu li a"),function(index){
		var href = this.toString();
		if(href == current_herf){
			$(".center_menu li a:eq(" + index + ")").addClass("current");
			match = true;
		} else {
			urlArray.push(href);
		}
	});

	if(match==false && current_herf.indexof('action=profile') == -1){
		var index = -1;
		count = 0;
		for(var i=0; i<urlArray.length; i++){
			tempCount = 0;
			for(var j=0; j<current_herf.length; j++){
				if(j < urlArray[i].length){
					a = current_herf.charAt(j);
					b = urlArray[i].charAt(j);
					if(a == b){
						++ tempCount;
					}
				}
			}
			if(tempCount > count){
				count = tempCount;
				index = i;
			}
		}
		$(".center_menu li a:eq(" + index + ")").addClass("current");
	}
	forum.op.newMessageChecking();
	</script>
#else
	#parse("default/_sidebar.htm")
#end